package com.tensin.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tensin.common.utils.PageUtils;
import com.tensin.mall.ware.entity.WareSkuEntity;
import com.tensin.mall.ware.vo.SkuHasStockTo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author tensin
 * @email 56793079@qq.com
 * @date 2022-07-12 00:16:40
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //将成功采购的进行入库
    void addStock(Long skuId, Long wareId, Integer skuNum);

    //查询sku是否还有库存
    List<SkuHasStockTo> getSkuHasStock(List<Long> skuIds);
}

